PrintDocument for WinForms | ComponentOne
C1.PrintDocument.8 Assembly / C1.C1Preview Namespace / LineDef Class / LineDef Constructor / LineDef Constructor(Unit,Color,Single[])
A value assigned to the LineDef.Color property.
A value assigned to the LineDef.Color property.
A value assigned to the LineDef.DashPattern property.

In This Topic
    LineDef Constructor(Unit,Color,Single[])
    In This Topic
    Initializes a new instance of the LineDef class, assigning line width, color and dash pattern. LineDef.DashStyle is set to System.Drawing.Drawing2D.DashStyle.Custom.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal width As Unit, _
       ByVal color As Color, _
       ByVal dashPattern() As Single _
    )
    public LineDef( 
       Unit width,
       Color color,
       float[] dashPattern
    )

    Parameters

    width
    A value assigned to the LineDef.Color property.
    color
    A value assigned to the LineDef.Color property.
    dashPattern
    A value assigned to the LineDef.DashPattern property.
    See Also